package com.cn.wanxi.thread;

public class MyRunnable implements Runnable {
    int aa = 100;

    @Override
    public void run() {
//        for (int i = 0; i < aa; i++) {
//            怎么得到当前线程
        while (aa > 0)
            System.out.println("线程" + Thread.currentThread().getName() + "开启：执行第 " + --aa + " 次");
//        }
    }
}